import request from '@/utils/request'

// 查询列表
export function listAdminMenus(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/listMenus.html',
    method: 'post',
    data: query
  })
}

// 菜单添加
export function saveMenu(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/saveMenu.html',
    method: 'post',
    data: query
  })
}

// 菜单删除
export function deleteMenu(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/deleteMenu.html',
    method: 'post',
    data: query
  })
}

// 菜单详情
export function getMenuById(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/getMenuById.html',
    method: 'post',
    data: query
  })
}

// 状态修改
export function updateMenuStatus(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/updateMenuStatus.html',
    method: 'post',
    data: query
  })
}

// 菜单编辑
export function updateMenu(query) {
  return request({
    url: '/com.mmk.admin.api.AdminMenuProvider/1.0.0/updateMenu.html',
    method: 'post',
    data: query
  })
}
// 所属平台
export function plattomfun(query) {
  return request({
    url: 'com.mmk.admin.api.AdminUserProvider/1.0.0/listSubSys.html',
    method: 'post',
    data: query
  })
}
